<!DOCTYPE html>
<html lang="en">
<head>
<base href="${basePath}">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta charset="utf-8">
<title>提现 - 云支付|云收款</title>
<#include "/views/ftl/base/shop_manage_header.ftl">
</head>
<body class="no-skin">
<#include "/views/ftl/base/shop_manage_top.ftl">
<div class="main-container" id="main-container">
<#import "/views/ftl/base/shop_manage_left.ftl" as r>
<@r.thebean urlname="change_cash_list"/>

			<!-- /section:basics/sidebar -->
			<div class="main-content">
				<!-- #section:basics/content.breadcrumbs -->
				<div class="breadcrumbs" id="breadcrumbs">
					<script type="text/javascript">
						try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
					</script>

					<ul class="breadcrumb">
						<li>
							<i class="ace-icon fa fa-home home-icon"></i>
							<a href="shopmanage/Index_index">首页</a>
						</li>

						<li>
							<a href="shopmanage/Tran_changeCashListPage">提现</a>
						</li>
						<!--<li class="active">Form Elements</li>-->
					</ul><!-- /.breadcrumb -->

					

					<!-- /section:basics/content.searchbox -->
				</div>

				<!-- /section:basics/content.breadcrumbs -->
				<div class="page-content">
					<!-- #section:settings.box -->
					<#include "/views/ftl/base/shop_manage_right_float.ftl">

					<!-- /section:settings.box -->					<div class="page-content-area">
						<div class="page-header">
							<h1>
								提现
								<small>
									<i class="ace-icon fa fa-angle-double-right"></i>
									可提现金额 ￥ ${(user.wallet)?c} 元
								</small>
							</h1>
						</div><!-- /.page-header -->

						<div class="row">
							<div class="col-xs-12">
							
								<!-- PAGE CONTENT BEGINS -->
								<div class="row">
									<div class="col-xs-12">
				
										<table width="100%" style="margin-top:0px; margin-bottom:10px">
                    	<tbody><tr>
                        	<td style="color:#06F; font-size:16px">            经云支付评估，你的提现将于 <#list changeCashAuthTypeEnum as enum><#if user.changeCashAuthType == enum.type>${enum.typeName}</#if></#list>个工作日到账，感谢你对云支付的支持。（<a href="news-27611.html" style="text-decoration:underline" "="" target="_blank"> 查看详情 </a>）
			</td>
                        </tr>
                    	<tr>
                        	<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<div name="forms"   >
                            <label style="font-weight:100">我当前可提现金额为<span style="font-weight:bold; font-size:14px; color:#F00">￥ ${(user.wallet)?c} 元 </span> <input id="textmoney" name="textmoney" type="text" class="smallinput" style="width:90px" size="20" value="" maxlength="50" placeholder="元">&nbsp;&nbsp;<button id="change_cash_btn" class="btn-glow primary login">提交申请</button>&nbsp;&nbsp;注：满10元即可提现，暂无上线，提现金额必须为整数。</label> 
                             </div></td>
                        </tr>
                        <tr>
                        	                        	<td style="color:#F00">注：为保障云支付正常运营，我方会按提现金额的多少收取手续费。<a href="news-27610.html" style="text-decoration:underline" "="" target="_blank"> 查看详情 </a></td>
                                                    </tr>
                    </tbody></table>
										<table id="sample-table-1" class="table table-striped table-bordered table-hover">
											<thead>
												<tr>
													<th class="center">
														<label class="position-relative">
															<input type="checkbox" class="ace">
															<span class="lbl"></span>
														</label>
													</th>
													<th>提现人</th>
													<th>提现时间</th>
													<th>预计到账时间</th>
													<th>提现账号</th>
													<th>金额/实发</th>
													<th>状态</th>
													<th></th>
												</tr>
											</thead>

											<tbody>
	  
   <#if (pager.list??)> 
         <#if ((pager.list?size)>0)>
          <#list pager.list as bean>  
		<tr>
			<td class="center">
				<label class="position-relative">
					<input type="checkbox" class="ace">
					<span class="lbl"></span>
				</label>
			</td>

			<td>
				<a href="shopmanage/Tran_changeCashListPage">${(bean.realName)!''}</a>
			</td>
			<td>${(bean.createTime)!''}</td>
			<td><em style="color:#F00; font-weight:bold">${(bean.expectedArrivalDate)!''}&nbsp;&nbsp;23点前</em></td>
			<td>${(bean.aliPayAccount)!''}</td>
			<td><em style="color:#F00">￥ ${(bean.changeCashMoney)?c} 元</em> | <em style="color:#F00">￥ ${(bean.grantMoney)?c} 元</em></td>
			<td>
			
			
			<#list changeCashStatusTypeEnum  as enum>
			<#if bean.changeCashStatus == enum.status>
				<#if bean.changeCashStatus ==1> 
					<span class="label label-warning"><i class="ace-icon fa fa-coffee bigger-120"></i>${enum.description2}</span>  
				<#elseif bean.changeCashStatus ==5>
					<span class="label"><i class="ace-icon fa fa-check-square-o  bigger-120"></i>${enum.description2}</span>
				<#elseif bean.changeCashStatus ==6>
					<span class="label label-error" style="background-color: #FF2828!important;"><i class="ace-icon fa fa-coffee bigger-120"></i>${enum.description2}</span>  
				<#elseif bean.changeCashStatus ==7>
					<span class="label label-error" style="background-color: #293033!important;"><i class="ace-icon fa fa-coffee bigger-120"></i>${enum.description2}</span> 
				</#if> 
			</#if> 
			</#list>
			
			</td>
			
			
			<td>
				<div class="hidden-sm hidden-xs btn-group">
				
					<a href="shopmanage/Tran_changeCashDetail?changeCashOrderId=${(bean.id)?c}" class="btn btn-xs btn-info" title="查看提现处理详情">
						<i class="ace-icon fa fa-pencil bigger-120"></i>
					</a>
					

				</div>

				<div class="hidden-md hidden-lg">
					<div class="inline position-relative">
						<a class="btn btn-minier btn-primary dropdown-toggle" data-toggle="dropdown" data-position="auto">
							<i class="ace-icon fa fa-cog icon-only bigger-110"></i>
						</a>

						<ul class="dropdown-menu dropdown-only-icon dropdown-yellow dropdown-menu-right dropdown-caret dropdown-close">
							
							<li>
								<a href="shopmanage/Tran_changeCashDetail?changeCashOrderId=${(bean.id)?c}" class="tooltip-success" data-rel="tooltip" title="" data-original-title="查看提现处理详情">
									<span class="green">
										<i class="ace-icon fa fa-pencil-square-o bigger-120"></i>
									</span>
								</a>
							</li>
							
						
						</ul>
					</div>
				</div>
			</td>
		</tr>
     </#list >
          </#if>
          </#if>
 												
											</tbody>
										</table>
					
  	<#import "/views/ftl/base/shop_manage_pager.ftl" as p>
   	<@p.pager pager = pager baseUrl = "shopmanage/Tran_changeCashListPage" parameterMap={ "startDate":(startDate)!'',"endDate":(endDate)!''} />
	
								</div><!-- /.span -->
								</div><!-- /.row -->

								<div class="hr hr-18 dotted hr-double"></div>

								
					</div><!-- /.page-content-area -->
				</div><!-- /.page-content -->
			</div><!-- /.main-content -->
			

<#include "/views/ftl/base/shop_manage_footer.ftl">
<script type="text/javascript">
$(function(){
	$('#change_cash_btn').click(function(){
			var money = $('#textmoney').val();
			if(isNaN(money)){
				alert("请输入数字");
				return ;
			}
			if(money <=0){
				alert("错误的金额");
				return ;
			}
			if(money <10){
				alert("请输入大于10的金额");
				return ;
			} 
	
			$.ajax({
				url : 'shopmanage/Tran_changeCash',
				data : {
					money: money
				},
				async:false,
				dataType :"JSON",
				cache : false, 
				type : "POST", 
				success : function(dat) { 
					alert(dat.msg);
				 	if(dat.code==1){ 
				 		window.location.reload();
				 	} 
				}
			});
		
	});
	
});
</script>
	
</div></div>
</body>
</html>